package com.zhb.cms.domain;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * 
* @ClassName: YybErpDomainApplication 
* @Description: erp领域服务 
* @owner 张海滨  zhanghb22 
* @author 张海滨  zhanghb22 
* @date 2017年6月8日 下午5:15:23 
*
 */
@MapperScan("com.zhb.cms.domain.dao")
@EnableTransactionManagement
@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker
@ComponentScan(basePackages={"com.zhb.cms"},excludeFilters=@Filter(type=FilterType.REGEX,pattern={"com.zhb.cms.sdk.log.*"}))
public class ZhbCmsDomainApplication {
	/*@Bean
	Sampler sampler(){
		return span -> true;
	}*/ 
	public static void main(String[] args)
	{
		SpringApplication.run(ZhbCmsDomainApplication.class, args);
	}
}
